#!/usr/bin/env python
# -*- conding: utf-8 -*-

"""
@Time     : 2024/8/7 22:19
@Author   : liujingmao
@File     : app_schema.py
"""

from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired, Length


class CompletionReq(FlaskForm):
    """基础聊天接口请求验证"""
    query = StringField('query', validators=[
        DataRequired(message="用户的提问是必填内容"),
        Length(max=2000, message="用户的最大提问内容是2000")
    ])
